// 验证规则
const [number, bank_id,mobile, is_default] = [
  [
    {required: true, message: '请填写银行卡号'},
    {pattern: /^([1-9]{1})(\d{11,18})$/, message: '银行卡号格式不正确'}
  ],
  [
    {required: true, message: '请填写开户行'},
    {type: 'integer', message: '开户行不存在'},
  ],
  [
    {required: true, message: '请填写银行预留手机号码'},
    {pattern: /^1[3456789]\d{9}$/, message: '手机号格式不正确'}
  ],
  [
    {required: true, type: "enum", enum: [0, 1], message: '请选择是否默认银行卡'}
  ],
];

// 验证场景
const scene = {
  updateBankCard: {number, bank_id,mobile, is_default},
};

export default scene;
